home *** CD-ROM | disk | FTP | other *** search
Text File | 1990-03-30 | 1.3 KB | 43 lines | [TEXT/GEOL] |
- Item 2600530 30-March-90 16:23PST
-
- From: D3072 Performance SW, Curt Loughin,PRT
-
- To: MOOF Rollin, Keith A
-
- cc: MACAPP.TECH$ MacApp Technical
-
- Sub: re[2]>THINK Pascal Conversion
-
- Keith,
-
- > 2) THINK Pascal doesn't seem to like creating sets on the fly. I was checking
- > to see if a command number was in a certain set with the following command:
- >
- > IF aCmdNumber IN [cOpenFromSelection, cOpenMultiPage, cOpenContinuing]
- > THEN ...
- >
- > The workaround was to turn this into 3 comparison statements.
-
- I don't think the problem is with creating sets on the fly, but with the
- magnitude of the set elements. The THINK Pascal default for the range of sets
- is 0..255. This can be overridden via a radio button in the Compile Options...
- dialog to make it -32768..32767.
-
- While we're on the subject of incompatibilities, the following was rejected by
- THINK ("Variables of this type would be too large"):
-
- TYPE
- BigString = RECORD
- l: Integer;
- c: PACKED ARRAY[1..32767] OF Char;
- END;
-
- The manual says that THINK data structures are limited to 32766 bytes max
- because "the MC68000 architecture doesn't allow 32 bit offsets". However, MPW
- Pascal handles it (it even accepts it if I change the upper bound of the
- subscript to 65535).
-
- Curt Loughin
-
-
-